/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package calendarconvert;

import java.io.File;
import javax.swing.filechooser.FileFilter;

/**
 *
 * @author Nom
 */
public class LuaFileFilter extends FileFilter {

    public boolean accept(File pathname) {
        if (pathname.isDirectory()) {
            return true;
        } else if (pathname.getAbsolutePath().endsWith(".lua")) {
            return true;
        }
        return false;
    }

    public String getDescription() {
        return "Lua Files";
    }
    
}
